package com.mo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mo.entity.Menu;
import com.mo.entity.RoleMenu;
import com.mo.entity.params.RoleMenuParam;
import com.mo.service.RoleMenuService;
import com.mo.mapper.RoleMenuMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu>
    implements RoleMenuService{
    @Resource
    private RoleMenuMapper roleMenuMapper;

    @Override
    public List<Menu> getMenuByRoleId(int roleId) {
        return roleMenuMapper.getMenuByRoleId(roleId);
    }
}




